<!-- author: marc goetz
     pagetemplate for @@wowcharacter view
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">

  <head profile="http://gmpg.org/xfn/11">
    <metal:block metal:fill-slot="style_slot">
      <link rel="shortcut icon" href="image/favicon.ico" />
      <!-- set custom stylesheet -->
      <link rel="stylesheet" href="++resource++collective.wowcharacter.stylesheets/wowcharacter.css" type="text/css" media="screen" />
    </metal:block>
    <!-- set wowhead tooltip javascript -->
    <metal:script metal:fill-slot="javascript_head_slot">
    <script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"></script>
    </metal:script>
  </head>

  <body>
    <metal:main fill-slot="main">
      <!-- css class dependent on character-fraction -->
      <div id="content"
           tal:define="character view/char_data"
           tal:attributes="class view/css_class" >
        <h1 tal:content="context/name" />
        <p tal:content="context/description" />

        <h1>General Info</h1>

        <p>Name: <span tal:replace="character/prefix" />
                 <span tal:replace="character/name" />
                 <span tal:replace="character/suffix" />
        </p>
        <p>Level: <span tal:replace="character/level" /> </p>
        <p>Race: <span tal:replace="character/race" /> </p>
        <p>Sex: <span tal:replace="character/sex" /> </p>
        <p>Class: <span tal:replace="character/class" /> </p>
        <p>Guild: <span tal:replace="character/guild" /> </p>
        <p>Achievements: <span tal:replace="character/points" /> </p>
        <p>Honorary Kills: <span tal:replace="character/lifetimehonorablekills" /> </p>
        <p>Battlegroup: <span tal:replace="character/battlegroup" /> </p>

        <h1>Talent Specs</h1>

        <p> <img tal:attributes="src character/spec1icon"> 
            <span tal:replace="character/spec1" /> 
        </p>
        <p> <img tal:attributes="src character/spec2icon"> 
            <span tal:replace="character/spec2" /> 
        </p>

        <h1>Professions</h1>

        <p> <span tal:replace="character/profession1" /> </p>
        <p> <span tal:replace="character/profession2" /> </p>

        <h1>Equip</h1>

        <!-- loop for each item -->
        <span class="icon_wrapper" tal:repeat="data view/char_equip">
          <a tal:attributes="href data/item_url;
                             rel data/ench_gems">
            <img class="icon" tal:attributes="src data/icon_url" />
          </a>
          <tal:cond define="num repeat/data/number"
                    condition="python:int(num) % 4 == 0">
            <br/>
          </tal:cond>

        </span>

          <h1>Comments</h1>

        <p tal:content=view/wow />

      </div>
    </metal:main>
  </body>

</html>

<!-- vim: set ft=html ts=2 sw=2 expandtab : -->
